home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / DB / UTIL72 / CAT713.SQL < prev    next >
Encoding:
Text File  |  1995-05-09  |  2.1 KB  |  76 lines

  1. rem 
  2. rem $Header: cat713.sql 7020100.1 94/09/23 22:14:47 cli Generic<base> $ 
  3. rem 
  4. Rem  Copyright (c) 1991 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      cat713.sql - Migrate 7.0.12 to 7.0.13
  7. Rem    DESCRIPTION
  8. Rem      RIGHT AFTER A 7.0.12 DATABASE IS STARTED
  9. Rem      UP USING 7.0.13 RELEASE FOR THE FIRST TIME, RUN THIS SCRIPT ONCE
  10. Rem      (RUN AS SYS OR INTERNAL).
  11. Rem      A 7.0.12 database is a database that has been created using 7.0.12
  12. Rem      release or upgraded to use 7.0.12 release.
  13. Rem    MODIFIED   (MM/DD/YY)
  14. Rem     jwijaya    03/04/93 -  merge changes from branch 1.1 
  15. Rem     jwijaya    03/01/93 -  Creation 
  16.  
  17. REM
  18. REM     THIS SCRIPT IS TO BE RUN ONCE RIGHT AFTER A 7.0.12 DATABASE
  19. REM     IS STARTED UP FOR THE FIRST TIME USING ORACLE7
  20. REM     RELEASE 7.0.13 (RUN AS SYS OR INTERNAL).
  21. REM     A 7.0.12 database is a database that has been created using 7.0.12
  22. REM     release or upgraded to use 7.0.12 release.
  23. REM
  24.  
  25. REM     Invalidate all stored procedures...
  26. update obj$ set status = 6
  27. where type in (7, 8, 9, 11)
  28.   and status not in (5, 6)
  29.   and linkname is null
  30. /
  31. commit
  32.  
  33. REM     Delete all diana and pcode of objects...
  34. truncate table idl_ub1$
  35. /
  36. truncate table idl_char$
  37. /
  38. truncate table idl_ub2$
  39. /
  40. truncate table idl_sb4$
  41. /
  42.  
  43. REM     Flush the dictionary and library caches...
  44. alter system flush shared_pool
  45. /
  46. REM     One more time for good measure...
  47. alter system flush shared_pool
  48. /
  49.  
  50. REM     Add VERSION column to IDL tables...
  51. REM     If each table already has a VERSION column, an error is expected...
  52. alter table idl_ub1$ add version number
  53. /
  54. drop index i_idl_ub11
  55. /
  56. create unique index i_idl_ub11 on idl_ub1$(obj#, part, version, piece#)
  57. /
  58. alter table idl_char$ add version number
  59. /
  60. drop index i_idl_char1
  61. /
  62. create unique index i_idl_char1 on idl_char$(obj#, part, version, piece#)
  63. /
  64. alter table idl_ub2$ add version number
  65. /
  66. drop index i_idl_ub21
  67. /
  68. create unique index i_idl_ub21 on idl_ub2$(obj#, part, version, piece#)
  69. /
  70. alter table idl_sb4$ add version number
  71. /
  72. drop index i_idl_sb41
  73. /
  74. create unique index i_idl_sb41 on idl_sb4$(obj#, part, version, piece#)
  75. /
  76.